import axios from './axios.js'
import { sysUrl } from './config.js'

const service = axios.create({
	baseURL: sysUrl,
	timeout: 100000
})
service.interceptors.request.use(config => {
	console.log("axios请求拦截器")
	config.headers['Authorization'] = 'Token 621eeb688d78d5ef46bc019c35eda9a0cacfa4e1'
	return config
}, error => {
	console.log(error)
	Promise.reject(error)
})

export {
	service
}